//
//  NSData-SQLitePersistence.m
// ----------------------------------------------------------------------
// Part of the SQLite Persistent Objects for Cocoa and Cocoa Touch
//
// Original Version: (c) 2008 Jeff LaMarche (jeff_Lamarche@mac.com)
// ----------------------------------------------------------------------
// This code may be used without restriction in any software, commercial,
// free, or otherwise. There are no attribution requirements, and no
// requirement that you distribute your changes, although bugfixes and 
// enhancements are welcome.
// 
// If you do choose to re-distribute the source code, you must retain the
// copyright notice and this license information. I also request that you
// place comments in to identify your changes.
//
// For information on how to use these classes, take a look at the 
// included Readme.txt file
// ----------------------------------------------------------------------

#import "NSData-SQLitePersistence.h"
//#import "NSData-Base64.h"

@implementation NSData(SQLitePersistence)  

- (NSData *)sqlBlobRepresentationOfSelf
{
	return self;
}
+ (BOOL)canBeStoredInSQLite
{
	return YES;
}
+ (NSString *)columnTypeForObjectStorage
{
	return kSQLiteColumnTypeText; // Look at using blob
}
+ (BOOL)shouldBeStoredInBlob
{
	return YES;
}
+ (id)objectWithSQLBlobRepresentation:(NSData *)data;
{
	// Simple pass through
	return data;
}
@end